<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="exercise_html_purifier.class">HTMLPurifier</parameter>
        <parameter key="exercise_html_purifier.config.class">HTMLPurifier_Config</parameter>
        <parameter key="exercise_html_purifier.cache_warmer.serializer.class">Exercise\HTMLPurifierBundle\CacheWarmer\SerializerCacheWarmer</parameter>
        <parameter key="exercise_html_purifier.twig_extension.class">Exercise\HTMLPurifierBundle\Twig\HTMLPurifierExtension</parameter>

        <parameter key="exercise_html_purifier.cache_warmer.serializer.paths" type="collection" />
    </parameters>

    <services>
        <service id="exercise_html_purifier.cache_warmer.serializer" class="%exercise_html_purifier.cache_warmer.serializer.class%">
            <argument>%exercise_html_purifier.cache_warmer.serializer.paths%</argument>
            <tag name="kernel.cache_warmer" />
        </service>

        <service id="exercise_html_purifier.twig_extension" class="%exercise_html_purifier.twig_extension.class%">
            <argument type="service" id="service_container" />
            <tag name="twig.extension" />
        </service>
    </services>
</container>
